package com.iscreen.core.trading.actions.parsers;

import com.iscreen.core.services.parser.BaseParser;
import com.iscreen.utils.exceptions.IScreenException;

public class DailyTradingDataParser extends BaseParser
{

	@Override
	public void parse(String dataFileName) throws IScreenException
	{
		BaseDailyDataParser parser = DailyTradingDataParserFactory.createParser(dataFileName);
    	if (parser != null)
    	{
    		parser.parse(dataFileName);
    	}
    	else
    	{
    		System.out.println("Skipping parsing file " + dataFileName + ". No matching parser.");
    	}
	}

}
